using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using OgilvyOne.Model;
using OgilvyOne.BLL;
using OgilvyOne.IDAL;

namespace OgilvyOne.ProcessFlow
{
    public class TemplateController
    {
        // Methods
        public bool CreateTemplate(TemInfo templateinfo)
        {
            try
            {
                new TemplateClass().Insert(templateinfo);
            }
            catch
            {
                return false;
            }
            return true;
        }

        public TemInfo getTemplateInfo(int tem_id)
        {
            TemplateClass class2 = new TemplateClass();
            return class2.gettemplateInfo(tem_id);
        }

        public void Updatetemplate(TemInfo templateInfo)
        {
            new TemplateClass().Update(templateInfo);
        }
    }
}
